<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SubirExamenRemarqueCreateDlg" widgetVar="SubirExamenRemarqueCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateSubirExamenRemarqueTitle}">

            <h:form id="SubirExamenRemarqueCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{subirExamenRemarqueController.selected != null}">

                        <p:outputLabel value="#{bundle.CreateSubirExamenRemarqueLabel_examen}" for="examen" />
                        <p:selectOneMenu id="examen" value="#{subirExamenRemarqueController.selected.examen}" required="true" requiredMessage="#{bundle.EditSubirExamenRemarqueRequiredMessage_examen}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{examenController.items}"
                                           var="examenItem"
                                           itemValue="#{examenItem}"
                                           itemLabel="#{examenItem.idExamen.toString()}"
                                           />
                            <f:converter binding="#{examenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.CreateSubirExamenRemarqueLabel_personne}" for="personne" />
                        <p:selectOneMenu id="personne" value="#{subirExamenRemarqueController.selected.personne}" required="true" requiredMessage="#{bundle.EditSubirExamenRemarqueRequiredMessage_personne}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{personneController.items}"
                                           var="personneItem"
                                           itemValue="#{personneItem}"
                                           itemLabel="#{personneItem.idPersonne.toString()}"
                                           />
                            <f:converter binding="#{personneConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.CreateSubirExamenRemarqueLabel_remarque}" for="remarque" />
                        <p:selectOneMenu id="remarque" value="#{subirExamenRemarqueController.selected.remarque}" required="true" requiredMessage="#{bundle.EditSubirExamenRemarqueRequiredMessage_remarque}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{remarqueController.items}"
                                           var="remarqueItem"
                                           itemValue="#{remarqueItem}"
                                           itemLabel="#{remarqueItem.idRemarque.toString()}"
                                           />
                            <f:converter binding="#{remarqueConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{subirExamenRemarqueController.saveNew}" value="#{bundle.Save}" update="display,:SubirExamenRemarqueListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SubirExamenRemarqueCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="SubirExamenRemarqueCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
